package com.hhxy.lambda;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
class Car{

}

class BC extends Car{
    String name = "宝马";
}
class BM extends Car{
    String name = "本次";

}
public class Main {
    public static void main(String[] args) {
        ArrayList<BC> bc = new ArrayList<>();
        ArrayList<BM> bm = new ArrayList<>();
        bc.add(new BC());
        go(bc);
        go(bm);

    }
    public static void go(ArrayList car){
        System.out.println("我进来了");
        System.out.println(car);
    }
}
